package com.ruoyi.common.core.constant;

import io.jsonwebtoken.SignatureAlgorithm;
import io.jsonwebtoken.security.Keys;

import javax.crypto.SecretKey;

/**
 * Token的Key常量
 * 
 * @author ruoyi
 */
public class TokenConstants
{
    /**
     * 令牌自定义标识
     */
    public static final String AUTHENTICATION = "Authorization";

    /**
     * 令牌前缀
     */
    public static final String PREFIX = "Bearer ";

    /**
     * 令牌秘钥
     */
//    public final static String SECRET = "abcdefghijklmnopqrstuvwxyz"; //升级jwt之前
    public final static String SECRET = "eEfcevH21U3Koj8kjYDqwuxejGP+h0dS930w95glXPIWKX4ND5+l+/K/y1xYB8ic4z4TA7n/CLGK/lYRY0ZtzQ==";
    // 移除旧的SECRET字符串，改用SecretKey
//    public final static SecretKey SECRET = Keys.secretKeyFor(SignatureAlgorithm.HS512);


}
